package com.cy.stone.system.domain.clientobject.auth;

import com.feiniaojin.gracefulresponse.api.ValidationStatusCode;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * 登录入参
 * @author Wings
 * @since 2023-12-10
 */
@Data
@Schema(name = "登录入参")
public class LoginCO {

    @Schema(description = "用户名")
    @NotEmpty(message = "用户名不能为空")
    @ValidationStatusCode(code = "-1")
    private String userName;

    @Schema(description = "密码")
    @NotEmpty(message = "密码不能为空")
    @ValidationStatusCode(code = "-1")
    private String password;
}
